function main() {
    let self = this;
    const humanName = self.$$("text_input_cfmyq9").$$getValue();
    const identityNo = self.$$("text_input_8tpgxe").$$getValue();

    if (!humanName || !identityNo) {
        return;
    }

    const params = [{
        name: "humanName",
        valueContent: humanName
    }];

    api.DATA_SOURCE_EXECUTE("be299e8c-451f-485c-90f9-fd95fe1ffa39", "api", params, [], "")
        .then(res => {
            const resValue = JSON.parse(res.result);
            let userName = "";
            if (parseInt(res.count) > 0) {
                userName = humanName + identityNo.slice(-4);
            } else {
                userName = humanName;
            }
            self.$$("text_input_3oi5kx").$$setValue(userName);
        })
        .catch(apiError => {
            console.error("调用API时出错:", apiError);
        });
}
